import Vue from 'vue'
import Lockr from 'lockr'
Vue.use(Lockr)
var Cache
export default Cache = {
  put : function(key,value){
    Lockr.set(key,value)
  },
  get : function(key){
    return Lockr.get(key)
  },
  remove : function(key){
    Lockr.rm(key);
  },
  sessionPut : function(key,value){
    window.sessionStorage.setItem(key,JSON.stringify(value));
  },
  sessionGet : function(key){
    return JSON.parse(window.sessionStorage.getItem(key))
  },
  sessionRemove : function(key){
    window.sessionStorage.removeItem(key)    
  }
}